export const state = () => ({
    locales: ['en', 'fr'],
    locale: 'en'
  })
  
  
  export const mutations = {
    SET_LANG (state, locale) {
      if (state.locales.includes(locale)) {
        state.locale = locale
      }
    }
  }
  
  const actions = {
    setMenu: ({commit}, menu)=>{
      commit('setMenu', menu)
    },
    setHotPlace: ({commit}, hotPlace)=>{
      commit('setHotPlace', hotPlace)
    }
  }
  
  
  export default {
    namespaced: true,
    state,
    mutations,
    actions
  }
  